package com.th.supcom.pds.outdrugreturnapply.client.service;

import java.util.List;
import java.util.Map;

import net.carefx.framework.container.client.exception.UiException;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.th.supcom.pds.common.client.commom.PdsAuditPrescServiceFactory;
import com.th.supcom.pds.outdrugreturnapply.client.common.PdsSupplyResultModel;

/**
 * 门诊退药服务接口.
 * 
 * @author yzhang
 */
@RemoteServiceRelativePath (PdsAuditPrescServiceFactory.BASE_URL + "outdrugreturn.do")
public interface OutDrugReturnApplyRpc extends RemoteService
{

    /** 公司版权信息. */
    public static final String copyright = "Copyright 2014, TH Supcom Corporation";

    /** 提交路径. */
    public static final String SCC_BRANCH = "$URL$";

    /** 提交日期. */
    public static final String SCC_LAST_MODIFICATION_DATE = "$Date$";

    /** 最终修改人员. */
    public static final String SCC_LAST_MODIFIER_NAME = "$Author$";

    /** 最终版本号. */
    public static final String SCC_REVISION = "$Revision$";

    /**
     * 通过 处方号、患者id、时间段查询可退药品记录
     * 
     * @param conditionMap
     * @return
     * @throws UiException
     */
    public List <PdsSupplyResultModel> findOutDrugReturnInfo (Map <String, Object> conditionMap) throws UiException;

    /**
     * @param pdsSupplyResultModel 退药结果集
     * @throws UiException
     */
    public void doDrugReturn (PdsSupplyResultModel pdsSupplyResultModel) throws UiException;
}